from tkinter import *
from PIL import ImageTk

master = Tk()
longtext = '''
虽然我只是一个按钮
但我很长长长长长长
长长长长长长长长长
长长长长长长长长长
'''

def say_hi():
    print('Hello')

def long_hi():
    print('Hello'*3)

photo = ImageTk.PhotoImage(file='cat_200_300.jpg')

a = Button(master,text='HI',command=say_hi)
a.pack()
b = Button(master,text='NO HI',state=DISABLED)
b.pack()
c = Button(master,text='long HI',command=long_hi)
c.pack()
d = Button(master,text='不要点我┬＿┬\n我只是一只喵\n点我也没用',
           image=photo,compound=LEFT)
d.pack()


mainloop()
